package com.woniuxy.school.user.client;

import com.woniuxy.commons.core.model.Result;

import com.woniuxy.school.user.entity.UserInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 普通用户远程接口
 */
@FeignClient(name = "school-user",path = "user")
public interface UserInfoClient {

    /**
     * 通过手机号查询用户信息
     */
    @GetMapping("/userInfo/getUserInfoByPhone")
    Result<UserInfo> getUserInfoByPhone(@RequestParam("phone") String phone);
}
